using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using luck.Models;

namespace luck.Controllers
{
    public class CompanyController : Controller
    {
        luckCompanyRepository luckcompanyrepository = new luckCompanyRepository();
        //
        // GET: /Company/

        public ActionResult Index()
        {
            return View();
        }

        //
        // GET: /Company/List

        public ActionResult List()
        {
            var companys = luckcompanyrepository.FindAllCompanys().ToList();
            return View("List", companys);
        }
    }
}
